import rxAjax from '@/assets/js/ajax.js';

//表单定制 api接口
export const FormCustomApi = {};

FormCustomApi.baseUrl= '/api-form/form/core/formCustom';
/**
 * 获取单记录
 * @param pkId
 * @returns {*}
 */
FormCustomApi.get =function(pkId) {
    let url= FormCustomApi.baseUrl + '/get?pkId=' + pkId;
    return rxAjax.get(url);
}

FormCustomApi.getByAlias=function(alias){
    let url= FormCustomApi.baseUrl + '/getByAlias?alias=' + alias;
    return rxAjax.get(url);
}

//获取所有的门户栏目
FormCustomApi.getInsColumns =function(parameter) {
    let url= '/api-portal/portal/core/insColumnDef/getAll';
    return rxAjax.get(url);
}

//根据ID获取门户栏目
FormCustomApi.getColumnById =function(pkId) {
    let url= '/api-portal/portal/core/insColumnDef/getColumnById?pkId='+pkId;
    return rxAjax.get(url);
}


export  default FormCustomApi;

